package org.tigris.scarab.model;

import java.io.Serializable;

/**
 *
 * @author andrea
 */
public class TypeAttributeDecorator implements Serializable {

    private boolean active;
    private boolean required;
    private boolean visible;
    private int preferredOrder;
    private int quickSearch;
    private int defaultTextFlag; //TODO probably an enumeration
    private boolean locked;
    private Attribute attribute;

    public void setActive(boolean active) {
        this.active = active;
    }

    public void setDefaultTextFlag(int defualtTextFlag) {
        this.defaultTextFlag = defualtTextFlag;
    }

    public void setLocked(boolean locked) {
        this.locked = locked;
    }

    public void setPreferredOrder(int preferredOrder) {
        this.preferredOrder = preferredOrder;
    }

    public void setQuickSearch(int quickSearch) {
        this.quickSearch = quickSearch;
    }

    public void setRequired(boolean required) {
        this.required = required;
    }

    public void setVisible(boolean visible) {
        this.visible = visible;
    }

    public boolean isActive() {
        return active;
    }

    public int getDefaultTextFlag() {
        return defaultTextFlag;
    }

    public boolean isLocked() {
        return locked;
    }

    public int getPreferredOrder() {
        return preferredOrder;
    }

    public int getQuickSearch() {
        return quickSearch;
    }

    public boolean isRequired() {
        return required;
    }

    public boolean isVisible() {
        return visible;
    }
    
     public Attribute getAttribute() {
        return attribute;
    }
}
